local extension = Package:new("ling_anshi")
extension.extensionName = "lingling"

extension:loadSkillSkelsByPath("./packages/lingling/pkg/ling_13_anshi/skills")

local lilongji = General:new(extension, "lingling__lilongji", "tang", 4)
table.insert(Fk.lords, "lingling__lilongji")
lilongji:addSkills { "lingling__shuairong", "lingling__bozheng", "lingling__cuochong" }
lilongji.endnote = "<br><font color='#a40000'>巍冠攒叠碧雪花，坐阅山中几岁华。<br>莫把金丹轻点化，正愁生死困安家。"
Fk:loadTranslationTable{
  ["lingling__lilongji"] = "李隆基",
  ["#lingling__lilongji"] = "再开唐统",
  ["designer:lingling__lilongji"] = "伶",
}

local guoziyi = General:new(extension, "lingling__guoziyi", "tang", 4)
guoziyi:addSkills { "lingling__kanluan", "lingling__weiming" }
guoziyi.endnote = "<br><font color='#a40000'>子仪帅彼劲卒，赫然先驱，取京洛如拾遗，翦凶残犹振槁，功存社稷，泽润生人。"
Fk:loadTranslationTable{
  ["lingling__guoziyi"] = "郭子仪",
  ["#lingling__guoziyi"] = "再造大唐",
  ["designer:lingling__guoziyi"] = "伶",
}

local liguangbi = General:new(extension, "lingling__liguangbi", "tang", 4)
liguangbi:addSkills { "lingling__qizheng", "lingling__yanzheng" }
liguangbi.endnote = "<br><font color='#a40000'>自艰难已来，唯光弼行军治戎，沉毅有筹略，将帅中第一。"
Fk:loadTranslationTable{
  ["lingling__liguangbi"] = "李光弼",
  ["#lingling__liguangbi"] = "入扶大厦",
  ["designer:lingling__liguangbi"] = "伶",
}

local anlushan = General:new(extension, "lingling__anlushan", "tang", 8)
anlushan.subkingdom = "yan"
table.insert(Fk.lords, "lingling__anlushan")
anlushan:addSkills { "lingling__tunzi", "lingling__huxuan", "lingling__daolong" }
anlushan.endnote = "<br><font color='#a40000'>乱幽州者，必此胡也。"
Fk:loadTranslationTable{
  ["lingling__anlushan"] = "安禄山",
  ["#lingling__anlushan"] = "犯阙凶羯",
  ["designer:lingling__anlushan"] = "伶",
}

local shisiming = General:new(extension, "lingling__shisiming", "tang", 4)
shisiming.subkingdom = "yan"
table.insert(Fk.lords, "lingling__shisiming")
shisiming:addSkills { "lingling__jiaoxi", "lingling__dabian" }
shisiming.endnote = "<br><font color='#a40000'>天地否闭，反逆乱常。"
Fk:loadTranslationTable{
  ["lingling__shisiming"] = "史思明",
  ["#lingling__shisiming"] = "凶狼毒蝎",
  ["designer:lingling__shisiming"] = "伶",
}

local limi = General:new(extension, "lingling__limi", "tang", 3)
limi:addSkills { "lingling__shanren", "lingling__dianshou" }
limi.endnote = "<br><font color='#a40000'>肃宗膝上卧，客星犯紫微。<br>不慕金印贵，但求天下安。</font>"
Fk:loadTranslationTable{
  ["lingling__limi"] = "李泌",
  ["#lingling__limi"] = "白衣卿相",
  ["designer:lingling__limi"] = "伶",
}

local puguhuaien = General:new(extension, "lingling__puguhuaien", "tang", 4)
puguhuaien:addSkills { "lingling__nanzhong", "lingling__beilie" }
puguhuaien.endnote = "<br><font color='#a40000'>家为国舍，朔定西何。</font>"
Fk:loadTranslationTable{
  ["lingling__puguhuaien"] = "仆固怀恩",
  ["#lingling__puguhuaien"] = "燕难宁归",
  ["designer:lingling__puguhuaien"] = "伶",
}

return extension
